package com.wenjie.original.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.wenjie.original.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
@Table("sys_diff_column")
@ApiModel("数据库字段信息")
public class SysDiffColumn extends BaseEntity {


    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @ApiModelProperty("主键ID")
    private Long sysDiffColumnId;


    @ApiModelProperty("")
    private Long sysDiffSyncId;


    @ApiModelProperty("")
    private Long sysDiffDatasourceId;


    @ApiModelProperty("")
    private Long sysDiffTableId;


    @ApiModelProperty("")
    private String tableName;


    @ApiModelProperty("")
    private String columnName;


    @ApiModelProperty("")
    private String columnComment;


    @ApiModelProperty("")
    private String columnType;


    @ApiModelProperty("")
    private String columnDataType;


    @ApiModelProperty("")
    private Integer columnLength;


    @ApiModelProperty("")
    private Object columnDefault;


    @ApiModelProperty("")
    private String columnIndex;


    @ApiModelProperty("")
    private Boolean columnNull;


    @ApiModelProperty("")
    private Integer columnSort;


}